package com.xiaohua.tlgorders.entity;

import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 *@Author 小花
 *@Date 2019/7/15 15:43
 * 订单商品表
 **/
@Data

public class OrderGoods implements Serializable {

    private Order order;//订单表对象

    private Integer id;  //编号

    private String orderNo; //订单号

    private Integer goodsId;//商品Id

    private Integer goodsNum;//商品数量

    @Override
    public String toString() {
        return "OrderGoods{" +
                "order=" + order +
                ", id=" + id +
                ", orderNo='" + orderNo + '\'' +
                ", goodsId=" + goodsId +
                ", goodsNum=" + goodsNum +
                ", goodsSpecId=" + goodsSpecId +
                ", goods=" + goods +
                ", goodsMoney=" + goodsMoney +
                ", deliverMoney=" + deliverMoney +
                ", totalMoney=" + totalMoney +
                '}';
    }

    private Integer goodsSpecId;//商品规格id

    private    Goods goods;//商品对象

    private    Integer  attributeId;//规格id
    private  Integer goodsMoney;//商品总价格--未进行任何折扣的总价格

    private  Integer deliverMoney;//运费

    private  Integer totalMoney;//订单总金额


}
